/*    */ package com.zimbra.cs.mailclient.smtp;
/*    */ 
/*    */ import com.google.common.base.Objects;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import com.zimbra.cs.mailclient.MailConfig;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public final class SmtpConfig
/*    */   extends MailConfig
/*    */ {
/*    */   public static final String PROTOCOL = "smtp";
/*    */   public static final int DEFAULT_PORT = 25;
/*    */   public static final int DEFAULT_SSL_PORT = 465;
/*    */   private String domain;
/*    */   private boolean allowPartialSend;
/*    */   private String dsn;
/*    */   
/*    */   public SmtpConfig(String host, int port, String domain)
/*    */   {
/* 36 */     super(ZimbraLog.smtp, host);
/* 37 */     setPort(port);
/* 38 */     setDomain(domain);
/*    */   }
/*    */   
/*    */   public SmtpConfig(String host) {
/* 42 */     super(ZimbraLog.smtp, host);
/* 43 */     setPort(25);
/*    */   }
/*    */   
/*    */   public SmtpConfig() {
/* 47 */     super(ZimbraLog.smtp);
/*    */   }
/*    */   
/*    */   public String getProtocol()
/*    */   {
/* 52 */     return "smtp";
/*    */   }
/*    */   
/*    */   public void setDomain(String domain) {
/* 56 */     this.domain = domain;
/*    */   }
/*    */   
/*    */   public String getDomain() {
/* 60 */     return (String)Objects.firstNonNull(this.domain, "localhost");
/*    */   }
/*    */   
/*    */   public void setAllowPartialSend(boolean allow) {
/* 64 */     this.allowPartialSend = allow;
/*    */   }
/*    */   
/*    */   public boolean isPartialSendAllowed() {
/* 68 */     return this.allowPartialSend;
/*    */   }
/*    */   
/*    */   public void setDsn(String dsn) {
/* 72 */     this.dsn = dsn;
/*    */   }
/*    */   
/*    */   public String getDsn() {
/* 76 */     return this.dsn;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/mailclient/smtp/SmtpConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */